<?php
/*
 * estudo de padrões de projetos com php
 * author: fabricio s costa
 * version: 1.0
 * site: http://fabriciojf.com
 */
class Usuario {
    private $id;
    private $nick;
    private $psw;
    private $role;
    private $dtCriacao;
    private $ultimoLogin;
    private $email;

    function _construct($id, $nick, $psw, $role, $dtCriacao, $ultimoLogin) {
        $this->psw = $psw;
        $this->nick = $nick;
        $this->role = $role;
        $this->dtCriacao = $dtCriacao;
        $this->ultimoLogin = $ultimoLogin;
    }
    public function getId() {
        return $this->id;
    }
    public function setId($id) {
        $this->id = $id;
    }
    public function getNick() {
        return $this->nick;
    }
    public function setNick($nick) {
        $this->nick = $nick;
    }
    public function getPsw() {
        return $this->psw;
    }
    public function setPsw($psw) {
        $this->psw = $psw;
    }
    public function getRole() {
        return $this->role;
    }
    public function setRole($role) {
        $this->role = $role;
    }
    public function getDtCriacao() {
        return $this->dtCriacao;
    }
    public function setDtCriacao($dtCriacao) {
        $this->dtCriacao = $dtCriacao;
    }
    public function getUltimoLogin() {
        return $this->ultimoLogin;
    }
    public function setUltimoLogin($ultimoLogin) {
        $this->ultimoLogin = $ultimoLogin;
    }
    public function getEmail() {
        return $this->email;
    }
    public function setEmail($email) {
        $this->email = $email;
    }
}
?>
